﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ZK.Common;

namespace ZK.YHP_TransManage.UC
{
    public partial class Setter : Form
    {

        private IConfig.Setters resM = IConfig.GetSetSetters;
        public Setter()
        {
            InitializeComponent();
            this.ControlBox = false;
            if (resM.HWKG == "1")
            {
                checkBox1.Checked = true;
                label2.Text = "目前是:开启";
            }
            this.StartPosition = FormStartPosition.CenterScreen;

        }

        private void button1_Click(object sender, EventArgs e)
        {
           
            string HWKG = "";
            if (checkBox1.Checked)
            {
                HWKG = "1";
            }
            else
            {
                HWKG = "0";
            }
            IConfig.GetSetSetters = new IConfig.Setters() { 
            HWKG = HWKG
            };
            this.Close();

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
